#include "Arduino.h"
#define LED1 10
#define LED2 11

void app_main(void)
{
    initArduino(); // 初始化arduino

    pinMode(LED1, OUTPUT);
    pinMode(LED2, OUTPUT);

    while (1)
    {
        digitalWrite(LED1, HIGH);
        digitalWrite(LED2, LOW);
        vTaskDelay(500 / portTICK_PERIOD_MS);

        digitalWrite(LED1, LOW);
        digitalWrite(LED2, HIGH);
        vTaskDelay(500 / portTICK_PERIOD_MS);
    }
    // WARNING: if program reaches end of function app_main() the MCU will restart.
}
